import es.fogondelarte.domain.*

class BootStrap {

    def init = { servletContext ->
		
		def r = new Role()
		r.authority="USUARIO"
		r.save()
		
		def u = new User()
		u.enabled= true
		u.password='manolo'
		u.username='manolo'
		u.enabled = true
		u.accountExpired=false
		u.accountLocked=false
		u.passwordExpired=false
		u.save(flush: true)
		UserRole.create(u,r,true)
    }
    def destroy = {
    }
}
